package com.itheima.day09.Zuoye.ZuoYe3;

import java.util.Arrays;
import java.util.Random;

public class Test {
    public static void main(String[] args) {
        Random r=new Random();
        int[] arr=new int[10];
        for (int i = 0; i < arr.length; i++) {
            arr[i]=r.nextInt(10,20);
            System.out.println(i+" "+arr[i]);
        }
        Arrays.stream(arr).filter(x->x>15).forEach(System.out::println);
    }
}
